function parseDom(arg) {
  var objE = document.createElement("div");
  objE.innerHTML = arg;
  return objE.childNodes;
};

const openFullScreenLoading = (self) => {
  const loading = self.$loading({
    lock: true,
    text: 'Loading',
    spinner: 'el-icon-loading',
    background: 'rgba(0, 0, 0, 0.2)'
  });
  return loading;
};

const closeFullScerenLoading = (loading) => {
  loading.close();
};

export {
  parseDom,
  openFullScreenLoading,
  closeFullScerenLoading
}
